package pe.gob.onpe.facade.remote;

import java.util.List;
import javax.ejb.Remote;

import pe.gob.onpe.ejb.InstitucionSolicitante;


/**
 * Remote interface for InstitucionSolicitanteFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Remote
public interface InstitucionSolicitanteFacadeRemote {
	/**
	 * Perform an initial save of a previously unsaved InstitucionSolicitante
	 * entity. All subsequent persist actions of this entity should use the
	 * #update() method.
	 * 
	 * @param entity
	 *            InstitucionSolicitante entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(InstitucionSolicitante entity);

	/**
	 * Delete a persistent InstitucionSolicitante entity.
	 * 
	 * @param entity
	 *            InstitucionSolicitante entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(InstitucionSolicitante entity);

	/**
	 * Persist a previously saved InstitucionSolicitante entity and return it or
	 * a copy of it to the sender. A copy of the InstitucionSolicitante entity
	 * parameter is returned when the JPA persistence mechanism has not
	 * previously been tracking the updated entity.
	 * 
	 * @param entity
	 *            InstitucionSolicitante entity to update
	 * @returns InstitucionSolicitante the persisted InstitucionSolicitante
	 *          entity instance, may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public InstitucionSolicitante update(InstitucionSolicitante entity);

	public InstitucionSolicitante findById(Long id);

	/**
	 * Find all InstitucionSolicitante entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the InstitucionSolicitante property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<InstitucionSolicitante> found by query
	 */
	public List<InstitucionSolicitante> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	public List<InstitucionSolicitante> findByNombre(Object nombre,
			int... rowStartIdxAndCount);

	public List<InstitucionSolicitante> findByRepresentante(
			Object representante, int... rowStartIdxAndCount);

	public List<InstitucionSolicitante> findByTelefono(Object telefono,
			int... rowStartIdxAndCount);

	public List<InstitucionSolicitante> findByDescripcioninstitucion(
			Object descripcioninstitucion, int... rowStartIdxAndCount);

	/**
	 * Find all InstitucionSolicitante entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<InstitucionSolicitante> all InstitucionSolicitante entities
	 */
	public List<InstitucionSolicitante> findAll(int... rowStartIdxAndCount);
}